//
//  BetSkillDetailVC.m
//  DaleTou
//
//  Created by anyfish010 on 2018/5/28.
//  Copyright © 2018年 geren. All rights reserved.
//

#import "BetSkillDetailVC.h"
#import "ZXTableView.h"
#import "XGConfig.h"
#import "BetSkillDetailCell.h"
#import "Appearance.h"
@interface BetSkillDetailVC ()<UITableViewDelegate,UITableViewDataSource>
@property(nonatomic,strong)ZXTableView *mainTable;

@end

@implementation BetSkillDetailVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
   
    [self setNavConfigStartColor:@"#F57321" endColor:@"#F57321"];
    [self ApptitileView:@"技巧详情"];

    _mainTable = [[ZXTableView alloc]initWithFrame:CGRectMake(0, NAV_HEIGHT, ScreenWidth, ScreenHeight  - NAV_HEIGHT) style:UITableViewStyleGrouped];
    _mainTable.delegate = self;
    _mainTable.dataSource = self;
    [self.view addSubview:self.mainTable];
    if (@available(iOS 11.0, *)) {
        self.mainTable.contentInsetAdjustmentBehavior = UIApplicationBackgroundFetchIntervalNever;
    }else {
        self.automaticallyAdjustsScrollViewInsets = NO;
    }

}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    BetSkillDetailCell *cell = [[[NSBundle mainBundle]loadNibNamed:@"BetSkillDetailCell" owner:nil options:nil] objectAtIndex:_type];
    [cell.btnClick addTarget:self action:@selector(clickBtn:) forControlEvents:UIControlEventTouchUpInside];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;

    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 1000;
}

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 0.1;
}

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
    return 0.1;
}

- (void)clickBtn:(UIButton *)btn{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
